<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>评论列表</title>
    <link rel="stylesheet" href="/addons/comments/assets/layui/css/layui.css">
    <link rel="stylesheet" href="/addons/comments/assets/css/admin.css">
</head>
<body>
    <div class="layui-card">
        <div class="layui-card-header">
            <a href="javascript:history.go(-1);" class="layui-btn ">返回</a>
        </div>
        <div class="layui-card-body">
            <form action="{:addons_url('comments://admin_index/save')}" method="post"  class="layui-form">

                <div class="layui-form-item">
                    <label class="layui-form-label">主题</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" value="{$data.article.post_title|default=''}" disabled>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">评论内容</label>
                    <div class="layui-input-block">
                        <textarea name="" id="" cols="30" rows="10" class="layui-textarea" disabled>{$data.article.post_title|default=''}</textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-inline">
                        <select name="is_status" >
                            <option value="0" {if $data.is_status eq 0}selected{/if}>未审核</option>
                            <option value="1" {if $data.is_status eq 1}selected{/if}>已审核</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="{$data.id}">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">修改</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</body>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="/addons/comments/assets/layui/layui.js"></script>
<script src="/addons/comments/assets/js/admin.js"></script>
</html>